<script setup>
import { ref } from 'vue'
import SmallCard from './components/SmallCard.vue'
import ComparisonCard from './components/ComparisonCard.vue'
// import {
//   Location,
//   Briefcase,
//   Avatar,
//   Star,
//   ChatLineSquare,
//   FolderOpened,
//   ChatDotSquare,
//   Warning
// } from 'element-plus'
const active1Name = ref('first')
const cityrecruitList = ref([
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘',
  '萍乡招聘'
])
const hotpositionList = ref([
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘',
  '前端工程师招聘'
])
const reconmandfirmList = ref([
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司',
  '上海由迈设计有限公司'
])
const hotfastoryList = ref([
  '百度',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为',
  '华为'
])
</script>

<template>
  <div class="nav">
    <div class="wrapper">
      <div class="zpz"><span>招聘中</span></div>
      <div class="name">
        <h1>物业环境主管</h1>
        <span>7-9k·13薪</span>
        <div class="tags">
          <el-button>交通补助</el-button>
          <el-button>节日福利</el-button>
          <el-button>通讯补贴</el-button>
          <el-button>餐补</el-button>
          <el-button>带薪年假</el-button>
        </div>
      </div>
      <ul class="tag_list">
        <li>
          <Location
            style="width: 1em; height: 1em; margin-right: 2px; color: #6f9edf"
          />
          北京
        </li>
        <li>
          <Briefcase
            style="width: 1em; height: 1em; margin-right: 2px; color: #6f9edf"
          />
          经验不限
        </li>
        <li>
          <Avatar
            style="width: 1em; height: 1em; margin-right: 2px; color: #6f9edf"
          />
          学历不限
        </li>
      </ul>
      <div class="contact">
        <div class="wzjz">
          <div class="interest">
            <Star style="width: 1em; height: 1em; margin-right: 2px" />
            感兴趣
          </div>
          <div class="lkgt">立刻沟通</div>
        </div>
        <div class="wzjy">
          <div class="txzxjl">
            <ChatLineSquare
              style="width: 1em; height: 1em; margin-right: 2px; color: #6f9edf"
            />
            填写在线简历
          </div>
          <div class="scfjjl">
            <FolderOpened
              style="width: 1em; height: 1em; margin-right: 2px; color: #6f9edf"
            />
            上传附件简历
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="wrapper">
    <el-row>
      <el-col :span="18">
        <el-card style="border-radius: 10px; margin-top: 10px">
          <template #header>
            <div class="card-header">
              <div class="zwms">职位描述</div>
              <div class="wxsmfx">
                <ChatDotSquare
                  style="
                    width: 1em;
                    height: 1em;
                    margin-right: 2px;
                    color: #6f9edf;
                  "
                />
                微信扫码分享
                <span class="jb">
                  <Warning
                    style="
                      width: 1em;
                      height: 1em;
                      margin-right: 2px;
                      color: #6f9edf;
                    "
                  />
                  举报
                </span>
              </div>
            </div>
            <el-tag>物业</el-tag>
          </template>
          <p>
            1、每天巡视管辖区域，抽检卫生质量、检查公共设施设备问题，及时通知整改或报修
          </p>
          <p>2、协助经理制定工作计划，并协调保洁员工作关系</p>
          <p>
            3、在日常保洁工作中督促保洁员安全管理，负责保洁员培训，指导保洁员正确使用保洁工具
          </p>

          <template #footer>
            <div class="grmp">
              <img
                style="
                  width: 56px;
                  height: 56px;
                  border-radius: 100%;
                  margin-right: 16px;
                "
                src="./assets/blurred.png"
                alt=""
              />
              <div class="lns">
                李女士
                <span class="jrhy">今日活跃</span>
                <div class="wwlx">万物梁行·hr</div>
              </div>
            </div>
          </template>
        </el-card>

        <el-card style="margin-top: 10px; border-radius: 10px">
          <template #header>
            <div class="gsjs">
              <h3>公司介绍</h3>
              <p>
                万物梁行是国内首家兼具中外基因的商企服务公司，于2019年12月12日由万物云（原万科物业）与戴德梁行强强联合成立，业务聚焦于商企空间全生命周期管理服务的解决方案，包含：物业管理（PM）、综合设施管理（IFM）、泛行政定制化服务、营销中心管理服务，以及围绕商企空间衍生的各类生态业务等。
              </p>
              <div class="ckqb">
                查看全部
                <ArrowDown
                  style="
                    width: 1em;
                    height: 1em;
                    margin-right: 2px;
                    color: #6f9edf;
                  "
                />
              </div>
            </div>
          </template>
          <div class="gsxx">
            <h3>工商信息</h3>
            <div class="list_box">
              <ul class="list">
                <li>
                  <span>公司名称</span>
                  <div>万物云空间科技服务股份有限公司</div>
                </li>
                <li>
                  <span>法定代表人 </span>
                  <div>朱保全</div>
                </li>
                <li>
                  <span>成立日期</span>
                  <div>2001-02-20</div>
                </li>
                <li>
                  <span>企业类型</span>
                  <div>股份有限公司（外商投资、上市）</div>
                </li>
                <li>
                  <span>经营状态</span>
                  <div>存续</div>
                </li>
                <li>
                  <span>注册资金</span>
                  <div>117565.5329万人民币</div>
                </li>
              </ul>
              <div class="ckqb1">
                查看全部
                <ArrowDown
                  style="
                    width: 1em;
                    height: 1em;
                    margin-right: 2px;
                    color: #6f9edf;
                  "
                />
              </div>
            </div>
          </div>
        </el-card>

        <el-card style="height: 277px; margin-top: 10px; border-radius: 10px">
          <div class="qtzw">
            <h3>看过该职位的人还看了</h3>
            <div class="gdzw">
              更多职位
              <ArrowRight
                style="
                  width: 1em;
                  height: 1em;
                  margin-right: 2px;
                  color: #6f9edf;
                "
              />
            </div>
          </div>
          <div class="xkp">
            <SmallCard></SmallCard>
            <SmallCard></SmallCard>
            <SmallCard></SmallCard>
            <SmallCard></SmallCard>
            <SmallCard></SmallCard>
            <SmallCard></SmallCard>
          </div>
        </el-card>

        <el-card style="margin-top: 10px; border-radius: 10px">
          <div class="jxzw">
            <h3>精选职位</h3>

            <div class="block text-center">
              <span class="demonstration">
                <!-- Switch when indicator is hovered (default) -->
              </span>
              <el-carousel height="220px">
                <el-carousel-item v-for="item in 4" :key="item">
                  <h3 class="small justify-center" text="2xl">
                    <div class="xkp">
                      <SmallCard></SmallCard>
                      <SmallCard></SmallCard>
                      <SmallCard></SmallCard>
                      <SmallCard></SmallCard>
                      <SmallCard></SmallCard>
                      <SmallCard></SmallCard>
                    </div>
                  </h3>
                </el-carousel-item>
              </el-carousel>
            </div>
            <el-input
              v-model="input3"
              style="max-width: 858px"
              placeholder="搜索职位、公司"
              class="input-with-select"
            >
              <template #prepend>
                <el-select
                  v-model="北京"
                  placeholder="北京"
                  style="width: 115px"
                >
                  <el-option label="北京" value="1" />
                  <el-option label="上海" value="2" />
                  <el-option label="东莞" value="3" />
                </el-select>
              </template>
              <template #append>
                <el-button>搜索</el-button>
              </template>
            </el-input>
          </div>
        </el-card>

        <el-card style="margin-top: 10px; border-radius: 10px">
          <el-tabs
            v-model="active1Name"
            class="demo-tabs"
            @tab-click="handleClick"
          >
            <el-tab-pane label="城市招聘" name="first">
              <el-space wrap>
                <el-button
                  v-for="(item, index) in cityrecruitList"
                  :key="index"
                  link
                  color="#00bebd"
                  class="active_btn"
                >
                  {{ item }}
                </el-button>
              </el-space>
            </el-tab-pane>
            <el-tab-pane label="热门职位" name="second">
              <el-space wrap>
                <el-button
                  v-for="(item, index) in hotpositionList"
                  :key="index"
                  link
                  color="#00bebd"
                  class="active_btn"
                >
                  {{ item }}
                </el-button>
              </el-space>
            </el-tab-pane>
            <el-tab-pane label="推荐公司" name="third">
              <el-space wrap>
                <el-button
                  v-for="(item, index) in reconmandfirmList"
                  :key="index"
                  link
                  color="#00bebd"
                  class="active_btn"
                >
                  {{ item }}
                </el-button>
              </el-space>
            </el-tab-pane>
            <el-tab-pane label="热门企业" name="fourth">
              <el-space wrap>
                <el-button
                  v-for="(item, index) in hotfastoryList"
                  :key="index"
                  link
                  color="#00bebd"
                  class="active_btn"
                >
                  {{ item }}
                </el-button>
              </el-space>
            </el-tab-pane>
          </el-tabs>
        </el-card>
      </el-col>
      <el-col :span="6"
        ><div class="right">
          <h3>各大行业职位任你选</h3>
          <div class="yztg">首次验证通过即注册BOSS直聘账号</div>
          <div class="lmhz">
            <el-input
              v-model="input3"
              placeholder="手机号"
              class="input-with-select"
            >
              <template #prepend>
                <!-- <CircleCheck
                  style="
                    width: 1em;
                    height: 1em;
                    margin-right: 8px;
                    color: #6f9edf;
                  "
                /> -->
                <el-select
                  v-model="select"
                  placeholder="+86"
                  style="width: 80px"
                >
                  <el-option label="中国大陆 +86" value="1" />
                  <el-option label="非中国大陆手机号" value="2" />
                </el-select>
              </template>
            </el-input>
            <el-input
              v-model="input2"
              style="padding-top: 20px"
              placeholder="短信验证码"
            >
              <template #append> <el-button>发送验证码</el-button> </template>
            </el-input>
            <div class="login">登录/注册</div>
            <div class="text_tip">
              <input type="checkbox" />已阅读并同意BOSS直聘<a href="#"
                >《用户协议》</a
              ><a href="#">《隐私政策》</a>,允许BOSS直聘统一管理本人账号信息
            </div>
          </div>
        </div>

        <el-card
          style="margin-top: 20px; margin-left: 16px; border-radius: 10px"
        >
          <template #header>公司基本信息</template>
          <div class="gsjbxx">
            <img
              src="./assets/7bf6f160950405e910f78a892a9ae46b69f162b2fc32e230bcebe780c430d1be4a2031cf1df8d000.png"
              alt=""
            />
            万物梁行
          </div>
          <div class="xqxx">
            <p>
              <User
                style="
                  width: 1em;
                  height: 1em;
                  margin-right: 8px;
                  color: #6f9edf;
                "
              />
              未融资
            </p>
            <p>
              <TrendCharts
                style="
                  width: 1em;
                  height: 1em;
                  margin-right: 8px;
                  color: #6f9edf;
                "
              />
              10000人以上
            </p>
            <p>
              <OfficeBuilding
                style="
                  width: 1em;
                  height: 1em;
                  margin-right: 8px;
                  color: #6f9edf;
                "
              />
              物业管理
            </p>
          </div>
          <div class="ckqbzw">查看全部职位</div>
        </el-card>
        <el-card
          style="margin-top: 20px; margin-left: 16px; border-radius: 10px"
        >
          <div class="xszw">
            <h3>相似职位</h3>
            <div class="gdxszw">
              更多相似职位
              <ArrowRight style="width: 1em; height: 1em; color: #6f9edf" />
            </div>
          </div>
          <ComparisonCard></ComparisonCard>
          <ComparisonCard></ComparisonCard>
          <ComparisonCard></ComparisonCard>
          <ComparisonCard></ComparisonCard>
          <ComparisonCard></ComparisonCard>

          <div class="ckqbzw">查看全部职位</div>
        </el-card></el-col
      >
    </el-row>
  </div>
</template>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

.wrapper {
  margin: 0 auto;
  width: 1200px;
}

.nav {
  height: 225px;
  width: 100%;
  background-color: #444c60;
}

.zpz {
  color: #fff;
  height: 22px;
  line-height: 22px;
  font-size: 14px;
  padding: 10px 0 19px;
}

.name {
  display: flex;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  margin-top: 10px;
}

.name span {
  font-size: 34px;
  font-family: kanzhun-Regular, kanzhun;
  color: #f26d49;
  line-height: 41px;
  font-weight: 400;
  margin-left: 30px;
  margin-right: 30px;
}

.wrapper_banner {
  margin-top: 16px;
  margin-right: 20px;
  color: #fff;
}

.tag_list {
  display: flex;
  margin-top: 16px;
  font-size: 16px;
  color: #fff;
}

.tag_list li {
  margin-right: 16px;
}

.contact {
  display: flex;
  justify-content: space-between;
  .wzjz {
    display: flex;
    .interest {
      color: #00d1d0;
      border: 1px solid #00bebd;
      width: 150px;
      border-radius: 12px;
      font-size: 18px;
      line-height: 43px;
      height: 45px;
      transition: all 0.2s linear;
      text-align: center;
      margin-top: 20px;
      cursor: pointer;
    }
    :hover {
      background: rgba(124, 187, 255, 0.8);
    }
    .lkgt {
      background: #00bebd;
      color: #fff;
      border: 1px solid #00bebd;
      width: 150px;
      border-radius: 12px;
      font-size: 18px;
      line-height: 43px;
      height: 45px;
      transition: all 0.2s linear;
      margin: 20px 0 0 20px;
      text-align: center;
      cursor: pointer;
    }
    .lkgt:hover {
      background-color: rgba(124, 187, 255, 0.8);
    }
  }
}

.wzjy {
  display: flex;
  font-size: 16px;
  color: #fff;
  line-height: 22px;
  margin-top: 40px;
}

.txzxjl {
  display: block;
  margin-right: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  .zwms {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 25px;
  }
}

.wxsmfx {
  :hover {
    color: #409eff;
  }
  cursor: pointer;
}

.jb {
  margin-left: 16px;
}

.grmp {
  display: flex;
}

.lns {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  line-height: 28px;
  .jrhy {
    font-size: 14px;
    color: #999;
    line-height: 20px;
    margin-left: 16px;
    font-weight: 400;
  }
  .wwlx {
    font-size: 15px;
    color: #666;
    line-height: 21px;
    margin-top: 8px;
    display: flex;
    align-items: center;
  }
}

.gsjs h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 25px;
  margin-bottom: 20px;
}

.gsjs p {
  line-height: 28px;
  color: #333;
  font-size: 15px;
}

.gsjs .ckqb {
  text-align: right;
  font-size: 15px;
  color: #00a6a7;
  line-height: 21px;
}

.gsxx h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 25px;
  margin-bottom: 20px;
}

.gsxx .list_box {
  width: 824px;
  height: 225px;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 20px;
}

.list_box .ckqb {
  text-align: center;
}

.list {
  display: flex;
  flex-wrap: wrap;
  li {
    margin-right: 105px;
    margin-bottom: 30px;
    span {
      font-size: 14px;
      color: #999;
      line-height: 20px;
    }
  }
  li:nth-child(3n) {
    margin-right: 0px;
  }
}

.list_box .ckqb1 {
  text-align: center;
  font-size: 15px;
  color: #00a6a7;
  line-height: 21px;
}

.qtzw {
  display: flex;
  justify-content: space-between;
  h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 25px;
    margin-bottom: 16px;
  }
  .gdzw {
    font-size: 16px;
    color: #00a6a7;
    font-weight: 400;
    line-height: 22px;
  }
}

.xkp {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.jxzw h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 25px;
  margin-bottom: 16px;
}

.tabs_card {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.block text-center {
  display: flex;
  justify-content: space-between;
}

.active_btn:hover {
  color: #409eff;
}

.el-carousel__indicator {
  background-color: blue;
  cursor: pointer;
}

.right {
  position: relative;
  height: 333px;
  background-color: #00c1c1;
  border-radius: 10px;
  margin-top: 10px;
  margin-left: 16px;
  h3 {
    color: #fff;
    text-align: center;
    padding-top: 20px;
    font-weight: normal;
  }
  .yztg {
    color: #fff;
    text-align: center;
    font-size: 14px;
  }
  .lmhz {
    position: absolute;
    margin-left: 22px;
    margin-top: 8px;
    width: 240px;
    height: 261px;
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    border: 1px solid #f7fdfd;
    padding: 20px 18px;
  }
}

.login {
  display: block;
  text-align: center;
  background: #00bebd;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 21px;
  padding: 4px 0;
  height: 36px;
  margin-top: 20px;
}

.text_tip {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  line-height: 17px;
  margin-top: 20px;
  input {
    margin-right: 4px;
  }
  a {
    text-decoration: none;
  }
}

.gsjbxx {
  img {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border: 1px solid #f3f5fb;
    border-radius: 8px;
    vertical-align: middle;
  }
}

.xqxx {
  margin-top: 20px;
  p {
    font-size: 15px;
    color: #333;
    line-height: 21px;
    margin-bottom: 8px;
    margin-left: 16px;
  }
}

.ckqbzw {
  border-radius: 8px;
  border: 1px solid #00bebd;
  font-weight: 500;
  color: #00a6a7;
  line-height: 20px;
  padding: 7px 0;
  text-align: center;
  display: block;
  width: 158px;
  margin: 0 auto;
  margin-top: 20px;
}

.ckqbzw:hover {
  background-color: #00a6a7;
  color: #fff;
  cursor: pointer;
}

.xszw {
  display: flex;
  justify-content: space-between;
  height: 46px;
  h3 {
    color: #222;
    line-height: 22px;
    font-size: 16px;
    font-weight: 500;
  }
  .gdxszw {
    font-size: 15px;
    color: #00a6a7;
    line-height: 21px;
    font-weight: 400;
    margin-top: 1px;
  }
}

.qtzw {
  display: flex;
  justify-content: space-between;
  h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 25px;
    margin-bottom: 16px;
  }
  .gdzw {
    font-size: 16px;
    color: #00a6a7;
    font-weight: 400;
    line-height: 22px;
  }
}
</style>
